<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>输出员工每一年的工资</title>
</head>
<body>
    <script>
        var age=0;
        var gz=3000;
        var sum=0
        do{
            age++;
            sum=50*age;
            document.write("该员工工作"+age+"年后的工资为:"+(sum+gz)+"元\n");
        }while(age<5)

    </script>
</body>
</html>